package com.cn.newetv.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class EtvUtils {
	static SimpleDateFormat dtFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	static SimpleDateFormat dFormat = new SimpleDateFormat("yyyy-MM-dd");
	static SimpleDateFormat tFormat = new SimpleDateFormat("HH:mm:ss");
	public static String getDateTime(Date date) {
		return dtFormat.format(date);
	}
	public static String getDate(Date date) {
		return dFormat.format(date);
	}
	public static String getTime(Date date) {
		return tFormat.format(date);
	}
}
